const Koa = require('koa')
const parser = require('koa-bodyparser')
const InitManager = require('./core/init')
const catchError = require('./middleware/exception')
const app = new Koa()
//一定要在初始化路由之前引用 
app.use(catchError)
app.use(parser())
//初始化路由
InitManager.initCore(app)



app.listen(3000)

